<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::visualization::PointCloudColorHandlerLabelField&lt; PointT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pri-types">Private 类型</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::visualization::PointCloudColorHandlerLabelField&lt; PointT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="structpcl_1_1_label.html">Label</a> field handler class for colors. Paints the points according to their labels, assigning a unique color from a predefined color lookup table to each label.  
 <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="point__cloud__color__handlers_8h_source.html">point_cloud_color_handlers.h</a>&gt;</code></p>
<div class="dynheader">
类 pcl::visualization::PointCloudColorHandlerLabelField&lt; PointT &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.png" usemap="#pcl::visualization::PointCloudColorHandlerLabelField_3C_20PointT_20_3E_map" alt=""/>
  <map id="pcl::visualization::PointCloudColorHandlerLabelField_3C_20PointT_20_3E_map" name="pcl::visualization::PointCloudColorHandlerLabelField_3C_20PointT_20_3E_map">
<area href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html" title="Base Handler class for PointCloud colors." alt="pcl::visualization::PointCloudColorHandler&lt; PointT &gt;" shape="rect" coords="0,0,365,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a500d680d2aaadd618eb708211b3c4299"><td class="memItemLeft" align="right" valign="top"><a id="a500d680d2aaadd618eb708211b3c4299"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">PointCloudColorHandlerLabelField</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:a500d680d2aaadd618eb708211b3c4299"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a540ed773970ca7df60efeb821588b05f"><td class="memItemLeft" align="right" valign="top"><a id="a540ed773970ca7df60efeb821588b05f"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">PointCloudColorHandlerLabelField</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a540ed773970ca7df60efeb821588b05f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler')"><img src="closed.png" alt="-"/>&#160;Public 类型 继承自 <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">pcl::visualization::PointCloudColorHandler&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a9b2953acc70faa002bd19c830851c0dd inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a9b2953acc70faa002bd19c830851c0dd"></a>
typedef <a class="el" href="classpcl_1_1_point_cloud.html">pcl::PointCloud</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloud</b></td></tr>
<tr class="separator:a9b2953acc70faa002bd19c830851c0dd inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a838a75697200f0b6b4f3cfcf5e26183b inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a838a75697200f0b6b4f3cfcf5e26183b"></a>
typedef PointCloud::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudPtr</b></td></tr>
<tr class="separator:a838a75697200f0b6b4f3cfcf5e26183b inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82321bb6bdd3b438c7259821f8f4d2e9 inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a82321bb6bdd3b438c7259821f8f4d2e9"></a>
typedef PointCloud::ConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudConstPtr</b></td></tr>
<tr class="separator:a82321bb6bdd3b438c7259821f8f4d2e9 inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac2cba8b2c3d084b4f307581169c450d9 inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="ac2cba8b2c3d084b4f307581169c450d9"></a>
typedef boost::shared_ptr&lt; <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">PointCloudColorHandler</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>Ptr</b></td></tr>
<tr class="separator:ac2cba8b2c3d084b4f307581169c450d9 inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ca5905f3cdba82ae8730362902e613f inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a0ca5905f3cdba82ae8730362902e613f"></a>
typedef boost::shared_ptr&lt; const <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">PointCloudColorHandler</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>ConstPtr</b></td></tr>
<tr class="separator:a0ca5905f3cdba82ae8730362902e613f inherit pub_types_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9e4ec4ca39cb2e64353464812b150a6f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a9e4ec4ca39cb2e64353464812b150a6f">PointCloudColorHandlerLabelField</a> (const bool static_mapping=true)</td></tr>
<tr class="memdesc:a9e4ec4ca39cb2e64353464812b150a6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a9e4ec4ca39cb2e64353464812b150a6f">更多...</a><br /></td></tr>
<tr class="separator:a9e4ec4ca39cb2e64353464812b150a6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cb974eae43b3f0539e4dc58d61acb19"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a0cb974eae43b3f0539e4dc58d61acb19">PointCloudColorHandlerLabelField</a> (const PointCloudConstPtr &amp;cloud, const bool static_mapping=true)</td></tr>
<tr class="memdesc:a0cb974eae43b3f0539e4dc58d61acb19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor.  <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a0cb974eae43b3f0539e4dc58d61acb19">更多...</a><br /></td></tr>
<tr class="separator:a0cb974eae43b3f0539e4dc58d61acb19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3415b330be03960cb866da4e6cdf3169"><td class="memItemLeft" align="right" valign="top"><a id="a3415b330be03960cb866da4e6cdf3169"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a3415b330be03960cb866da4e6cdf3169">~PointCloudColorHandlerLabelField</a> ()</td></tr>
<tr class="memdesc:a3415b330be03960cb866da4e6cdf3169"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a3415b330be03960cb866da4e6cdf3169"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a4c8929af395e6e21e4c898cc59f26f"><td class="memItemLeft" align="right" valign="top"><a id="a4a4c8929af395e6e21e4c898cc59f26f"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a4a4c8929af395e6e21e4c898cc59f26f">getFieldName</a> () const</td></tr>
<tr class="memdesc:a4a4c8929af395e6e21e4c898cc59f26f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the name of the field used. <br /></td></tr>
<tr class="separator:a4a4c8929af395e6e21e4c898cc59f26f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08f97c9f4bff988486942bd223f8b5f0"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a08f97c9f4bff988486942bd223f8b5f0">getColor</a> (<a class="el" href="classvtk_smart_pointer.html">vtkSmartPointer</a>&lt; vtkDataArray &gt; &amp;scalars) const</td></tr>
<tr class="memdesc:a08f97c9f4bff988486942bd223f8b5f0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain the actual color for the input dataset as vtk scalars.  <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a08f97c9f4bff988486942bd223f8b5f0">更多...</a><br /></td></tr>
<tr class="separator:a08f97c9f4bff988486942bd223f8b5f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08ec1abf737572a3ec43f9632ea19fda"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a08ec1abf737572a3ec43f9632ea19fda">setInputCloud</a> (const PointCloudConstPtr &amp;cloud)</td></tr>
<tr class="memdesc:a08ec1abf737572a3ec43f9632ea19fda"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the input cloud to be used.  <a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a08ec1abf737572a3ec43f9632ea19fda">更多...</a><br /></td></tr>
<tr class="separator:a08ec1abf737572a3ec43f9632ea19fda"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">pcl::visualization::PointCloudColorHandler&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a18678dfd183c2efb1bfaf73fcf457452 inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a18678dfd183c2efb1bfaf73fcf457452"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a18678dfd183c2efb1bfaf73fcf457452">PointCloudColorHandler</a> ()</td></tr>
<tr class="memdesc:a18678dfd183c2efb1bfaf73fcf457452 inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a18678dfd183c2efb1bfaf73fcf457452 inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada127fd3421f281d15531488bbbc3f0e inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="ada127fd3421f281d15531488bbbc3f0e"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#ada127fd3421f281d15531488bbbc3f0e">PointCloudColorHandler</a> (const PointCloudConstPtr &amp;cloud)</td></tr>
<tr class="memdesc:ada127fd3421f281d15531488bbbc3f0e inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:ada127fd3421f281d15531488bbbc3f0e inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6390912de56cda106a17b9ed619fd94a inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a6390912de56cda106a17b9ed619fd94a"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a6390912de56cda106a17b9ed619fd94a">~PointCloudColorHandler</a> ()</td></tr>
<tr class="memdesc:a6390912de56cda106a17b9ed619fd94a inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a6390912de56cda106a17b9ed619fd94a inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78d414ffb3e0c6c269cac031c1cba218 inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a78d414ffb3e0c6c269cac031c1cba218"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a78d414ffb3e0c6c269cac031c1cba218">isCapable</a> () const</td></tr>
<tr class="memdesc:a78d414ffb3e0c6c269cac031c1cba218 inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check if this handler is capable of handling the input data or not. <br /></td></tr>
<tr class="separator:a78d414ffb3e0c6c269cac031c1cba218 inherit pub_methods_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a08ec501d9c8c378ea7e774735c2f0146"><td class="memItemLeft" align="right" valign="top"><a id="a08ec501d9c8c378ea7e774735c2f0146"></a>
virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a08ec501d9c8c378ea7e774735c2f0146">getName</a> () const</td></tr>
<tr class="memdesc:a08ec501d9c8c378ea7e774735c2f0146"><td class="mdescLeft">&#160;</td><td class="mdescRight">Class getName method. <br /></td></tr>
<tr class="separator:a08ec501d9c8c378ea7e774735c2f0146"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-types"></a>
Private 类型</h2></td></tr>
<tr class="memitem:acaa12ece15f31d069f25046c46cf0e1a"><td class="memItemLeft" align="right" valign="top"><a id="acaa12ece15f31d069f25046c46cf0e1a"></a>
typedef <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">PointCloudColorHandler</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::<a class="el" href="classpcl_1_1_point_cloud.html">PointCloud</a>&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloud</b></td></tr>
<tr class="separator:acaa12ece15f31d069f25046c46cf0e1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07957defbaa35759709a81072146a70f"><td class="memItemLeft" align="right" valign="top"><a id="a07957defbaa35759709a81072146a70f"></a>
typedef PointCloud::Ptr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudPtr</b></td></tr>
<tr class="separator:a07957defbaa35759709a81072146a70f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96a1b3e63939614086ee90efd5ad3045"><td class="memItemLeft" align="right" valign="top"><a id="a96a1b3e63939614086ee90efd5ad3045"></a>
typedef PointCloud::ConstPtr&#160;</td><td class="memItemRight" valign="bottom"><b>PointCloudConstPtr</b></td></tr>
<tr class="separator:a96a1b3e63939614086ee90efd5ad3045"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a392066840da37e93ac429a21a26b7df2"><td class="memItemLeft" align="right" valign="top"><a id="a392066840da37e93ac429a21a26b7df2"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>static_mapping_</b></td></tr>
<tr class="separator:a392066840da37e93ac429a21a26b7df2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
额外继承的成员函数</h2></td></tr>
<tr class="inherit_header pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler')"><img src="closed.png" alt="-"/>&#160;Protected 属性 继承自 <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html">pcl::visualization::PointCloudColorHandler&lt; PointT &gt;</a></td></tr>
<tr class="memitem:a792e2bb434adab01260cc3bfc5fd633f inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a792e2bb434adab01260cc3bfc5fd633f"></a>
PointCloudConstPtr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">cloud_</a></td></tr>
<tr class="memdesc:a792e2bb434adab01260cc3bfc5fd633f inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">A pointer to the input dataset. <br /></td></tr>
<tr class="separator:a792e2bb434adab01260cc3bfc5fd633f inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a667ee20514feb3d83ea205d39a2efe5f inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="a667ee20514feb3d83ea205d39a2efe5f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a667ee20514feb3d83ea205d39a2efe5f">capable_</a></td></tr>
<tr class="memdesc:a667ee20514feb3d83ea205d39a2efe5f inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if this handler is capable of handling the input data, false otherwise. <br /></td></tr>
<tr class="separator:a667ee20514feb3d83ea205d39a2efe5f inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af802304b20568b48ea9da0f203128ff8 inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="af802304b20568b48ea9da0f203128ff8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#af802304b20568b48ea9da0f203128ff8">field_idx_</a></td></tr>
<tr class="memdesc:af802304b20568b48ea9da0f203128ff8 inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">The index of the field holding the data that represents the color. <br /></td></tr>
<tr class="separator:af802304b20568b48ea9da0f203128ff8 inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba3fc6b22d44f778e126f94550b7f932 inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memItemLeft" align="right" valign="top"><a id="aba3fc6b22d44f778e126f94550b7f932"></a>
std::vector&lt; <a class="el" href="structpcl_1_1_p_c_l_point_field.html">pcl::PCLPointField</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#aba3fc6b22d44f778e126f94550b7f932">fields_</a></td></tr>
<tr class="memdesc:aba3fc6b22d44f778e126f94550b7f932 inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="mdescLeft">&#160;</td><td class="mdescRight">The list of fields available for this <a class="el" href="classpcl_1_1_point_cloud.html" title="PointCloud represents the base class in PCL for storing collections of 3D points.">PointCloud</a>. <br /></td></tr>
<tr class="separator:aba3fc6b22d44f778e126f94550b7f932 inherit pro_attribs_classpcl_1_1visualization_1_1_point_cloud_color_handler"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename PointT&gt;<br />
class pcl::visualization::PointCloudColorHandlerLabelField&lt; PointT &gt;</h3>

<p><a class="el" href="structpcl_1_1_label.html">Label</a> field handler class for colors. Paints the points according to their labels, assigning a unique color from a predefined color lookup table to each label. </p>
<dl class="section author"><dt>作者</dt><dd>Sergey Alexandrov </dd></dl>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a9e4ec4ca39cb2e64353464812b150a6f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e4ec4ca39cb2e64353464812b150a6f">&#9670;&nbsp;</a></span>PointCloudColorHandlerLabelField() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">pcl::visualization::PointCloudColorHandlerLabelField</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::<a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">PointCloudColorHandlerLabelField</a> </td>
          <td>(</td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>static_mapping</em> = <code>true</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">static_mapping</td><td>Use a static colormapping from label_id to color (default true) </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;          : PointCloudColorHandler&lt;PointT&gt; ()</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;        {</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a667ee20514feb3d83ea205d39a2efe5f">capable_</a> = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00521"></a><span class="lineno">  521</span>&#160;          static_mapping_ = static_mapping;</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_point_cloud_color_handler_html_a667ee20514feb3d83ea205d39a2efe5f"><div class="ttname"><a href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a667ee20514feb3d83ea205d39a2efe5f">pcl::visualization::PointCloudColorHandler::capable_</a></div><div class="ttdeci">bool capable_</div><div class="ttdoc">True if this handler is capable of handling the input data, false otherwise.</div><div class="ttdef"><b>Definition:</b> point_cloud_color_handlers.h:123</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a0cb974eae43b3f0539e4dc58d61acb19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cb974eae43b3f0539e4dc58d61acb19">&#9670;&nbsp;</a></span>PointCloudColorHandlerLabelField() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">pcl::visualization::PointCloudColorHandlerLabelField</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::<a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">PointCloudColorHandlerLabelField</a> </td>
          <td>(</td>
          <td class="paramtype">const PointCloudConstPtr &amp;&#160;</td>
          <td class="paramname"><em>cloud</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const bool&#160;</td>
          <td class="paramname"><em>static_mapping</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Constructor. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">static_mapping</td><td>Use a static colormapping from label_id to color (default true) </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;          : PointCloudColorHandler&lt;PointT&gt; (cloud)</div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;        {</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;          <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a08ec1abf737572a3ec43f9632ea19fda">setInputCloud</a> (cloud);</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;          static_mapping_ = static_mapping;</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160;        }</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_point_cloud_color_handler_label_field_html_a08ec1abf737572a3ec43f9632ea19fda"><div class="ttname"><a href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html#a08ec1abf737572a3ec43f9632ea19fda">pcl::visualization::PointCloudColorHandlerLabelField::setInputCloud</a></div><div class="ttdeci">virtual void setInputCloud(const PointCloudConstPtr &amp;cloud)</div><div class="ttdoc">Set the input cloud to be used.</div><div class="ttdef"><b>Definition:</b> point_cloud_color_handlers.hpp:511</div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a08f97c9f4bff988486942bd223f8b5f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08f97c9f4bff988486942bd223f8b5f0">&#9670;&nbsp;</a></span>getColor()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">pcl::visualization::PointCloudColorHandlerLabelField</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::getColor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classvtk_smart_pointer.html">vtkSmartPointer</a>&lt; vtkDataArray &gt; &amp;&#160;</td>
          <td class="paramname"><em>scalars</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain the actual color for the input dataset as vtk scalars. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">scalars</td><td>the output scalars containing the color for the dataset </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>true if the operation was successful (the handler is capable and the input cloud was given as a valid pointer), false otherwise </dd></dl>

<p>实现了 <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a788257a9e86e041c78a8f8e3250eec7a">pcl::visualization::PointCloudColorHandler&lt; PointT &gt;</a>.</p>
<div class="fragment"><div class="line"><a name="l00525"></a><span class="lineno">  525</span>&#160;{</div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;  <span class="keywordflow">if</span> (!<a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a667ee20514feb3d83ea205d39a2efe5f">capable_</a> || !<a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">cloud_</a>)</div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    <span class="keywordflow">return</span> (<span class="keyword">false</span>);</div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160; </div>
<div class="line"><a name="l00529"></a><span class="lineno">  529</span>&#160;  <span class="keywordflow">if</span> (!scalars)</div>
<div class="line"><a name="l00530"></a><span class="lineno">  530</span>&#160;    scalars = <a class="code" href="classvtk_smart_pointer.html">vtkSmartPointer&lt;vtkUnsignedCharArray&gt;::New</a> ();</div>
<div class="line"><a name="l00531"></a><span class="lineno">  531</span>&#160;  scalars-&gt;SetNumberOfComponents (3);</div>
<div class="line"><a name="l00532"></a><span class="lineno">  532</span>&#160; </div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;  vtkIdType nr_points = <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">cloud_</a>-&gt;points.size ();</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;  <span class="keyword">reinterpret_cast&lt;</span>vtkUnsignedCharArray*<span class="keyword">&gt;</span> (&amp;(*scalars))-&gt;SetNumberOfTuples (nr_points);</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;  <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>* colors = <span class="keyword">reinterpret_cast&lt;</span>vtkUnsignedCharArray*<span class="keyword">&gt;</span> (&amp;(*scalars))-&gt;GetPointer (0);</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160; </div>
<div class="line"><a name="l00537"></a><span class="lineno">  537</span>&#160; </div>
<div class="line"><a name="l00538"></a><span class="lineno">  538</span>&#160;  std::map&lt;uint32_t, pcl::RGB&gt; colormap;</div>
<div class="line"><a name="l00539"></a><span class="lineno">  539</span>&#160;  <span class="keywordflow">if</span> (!static_mapping_)</div>
<div class="line"><a name="l00540"></a><span class="lineno">  540</span>&#160;  {</div>
<div class="line"><a name="l00541"></a><span class="lineno">  541</span>&#160;    std::set&lt;uint32_t&gt; labels;</div>
<div class="line"><a name="l00542"></a><span class="lineno">  542</span>&#160;    <span class="comment">// First pass: find unique labels</span></div>
<div class="line"><a name="l00543"></a><span class="lineno">  543</span>&#160;    <span class="keywordflow">for</span> (vtkIdType i = 0; i &lt; nr_points; ++i)</div>
<div class="line"><a name="l00544"></a><span class="lineno">  544</span>&#160;      labels.insert (<a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">cloud_</a>-&gt;points[i].label);</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160; </div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;    <span class="comment">// Assign Glasbey colors in ascending order of labels</span></div>
<div class="line"><a name="l00547"></a><span class="lineno">  547</span>&#160;    <span class="keywordtype">size_t</span> color = 0;</div>
<div class="line"><a name="l00548"></a><span class="lineno">  548</span>&#160;    <span class="keywordflow">for</span> (std::set&lt;uint32_t&gt;::iterator iter = labels.begin (); iter != labels.end (); ++iter, ++color)</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;      colormap[*iter] = <a class="code" href="classpcl_1_1_glasbey_l_u_t.html#a104b41fc57038d01132021afa4a5d699">GlasbeyLUT::at</a> (color % <a class="code" href="classpcl_1_1_glasbey_l_u_t.html#ad892a35624641fbd865ca377af97ef19">GlasbeyLUT::size</a> ());</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;  }</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160; </div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;  <span class="keywordtype">int</span> j = 0;</div>
<div class="line"><a name="l00553"></a><span class="lineno">  553</span>&#160;  <span class="keywordflow">for</span> (vtkIdType cp = 0; cp &lt; nr_points; ++cp)</div>
<div class="line"><a name="l00554"></a><span class="lineno">  554</span>&#160;  {</div>
<div class="line"><a name="l00555"></a><span class="lineno">  555</span>&#160;    <span class="keywordflow">if</span> (pcl::isFinite (<a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">cloud_</a>-&gt;points[cp]))</div>
<div class="line"><a name="l00556"></a><span class="lineno">  556</span>&#160;    {</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;      <span class="keyword">const</span> <a class="code" href="structpcl_1_1_r_g_b.html">pcl::RGB</a>&amp; color = static_mapping_ ? <a class="code" href="classpcl_1_1_glasbey_l_u_t.html#a104b41fc57038d01132021afa4a5d699">GlasbeyLUT::at</a> (<a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">cloud_</a>-&gt;points[cp].label % <a class="code" href="classpcl_1_1_glasbey_l_u_t.html#ad892a35624641fbd865ca377af97ef19">GlasbeyLUT::size</a> ()) : colormap[<a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">cloud_</a>-&gt;points[cp].label];</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;      colors[j    ] = color.r;</div>
<div class="line"><a name="l00559"></a><span class="lineno">  559</span>&#160;      colors[j + 1] = color.g;</div>
<div class="line"><a name="l00560"></a><span class="lineno">  560</span>&#160;      colors[j + 2] = color.b;</div>
<div class="line"><a name="l00561"></a><span class="lineno">  561</span>&#160;      j += 3;</div>
<div class="line"><a name="l00562"></a><span class="lineno">  562</span>&#160;    }</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;  }</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160; </div>
<div class="line"><a name="l00565"></a><span class="lineno">  565</span>&#160;  <span class="keywordflow">return</span> (<span class="keyword">true</span>);</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1_glasbey_l_u_t_html_a104b41fc57038d01132021afa4a5d699"><div class="ttname"><a href="classpcl_1_1_glasbey_l_u_t.html#a104b41fc57038d01132021afa4a5d699">pcl::GlasbeyLUT::at</a></div><div class="ttdeci">static RGB at(unsigned int color_id)</div></div>
<div class="ttc" id="aclasspcl_1_1_glasbey_l_u_t_html_ad892a35624641fbd865ca377af97ef19"><div class="ttname"><a href="classpcl_1_1_glasbey_l_u_t.html#ad892a35624641fbd865ca377af97ef19">pcl::GlasbeyLUT::size</a></div><div class="ttdeci">static size_t size()</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_point_cloud_color_handler_html_a792e2bb434adab01260cc3bfc5fd633f"><div class="ttname"><a href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a792e2bb434adab01260cc3bfc5fd633f">pcl::visualization::PointCloudColorHandler::cloud_</a></div><div class="ttdeci">PointCloudConstPtr cloud_</div><div class="ttdoc">A pointer to the input dataset.</div><div class="ttdef"><b>Definition:</b> point_cloud_color_handlers.h:118</div></div>
<div class="ttc" id="aclassvtk_smart_pointer_html"><div class="ttname"><a href="classvtk_smart_pointer.html">vtkSmartPointer</a></div><div class="ttdef"><b>Definition:</b> actor_map.h:50</div></div>
<div class="ttc" id="astructpcl_1_1_r_g_b_html"><div class="ttname"><a href="structpcl_1_1_r_g_b.html">pcl::RGB</a></div><div class="ttdoc">A structure representing RGB color information.</div><div class="ttdef"><b>Definition:</b> point_types.hpp:334</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a08ec1abf737572a3ec43f9632ea19fda"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08ec1abf737572a3ec43f9632ea19fda">&#9670;&nbsp;</a></span>setInputCloud()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename PointT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">pcl::visualization::PointCloudColorHandlerLabelField</a>&lt; <a class="el" href="structpcl_1_1_point_x_y_z_r_g_b_a.html">PointT</a> &gt;::setInputCloud </td>
          <td>(</td>
          <td class="paramtype">const PointCloudConstPtr &amp;&#160;</td>
          <td class="paramname"><em>cloud</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Set the input cloud to be used. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">cloud</td><td>the input cloud to be used by the handler </td></tr>
  </table>
  </dd>
</dl>

<p>重载 <a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a853e39570f293fdc6a683d57d4791632">pcl::visualization::PointCloudColorHandler&lt; PointT &gt;</a> .</p>
<div class="fragment"><div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;{</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;  <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a853e39570f293fdc6a683d57d4791632">PointCloudColorHandler&lt;PointT&gt;::setInputCloud</a> (cloud);</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;  <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#af802304b20568b48ea9da0f203128ff8">field_idx_</a> = <a class="code" href="group__common.html#ga2bc4b9a4e25de1d0b00db4e41f0ad682">pcl::getFieldIndex</a> (*cloud, <span class="stringliteral">&quot;label&quot;</span>, <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#aba3fc6b22d44f778e126f94550b7f932">fields_</a>);</div>
<div class="line"><a name="l00515"></a><span class="lineno">  515</span>&#160;  <span class="keywordflow">if</span> (<a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#af802304b20568b48ea9da0f203128ff8">field_idx_</a> != -1)</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;  {</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    <a class="code" href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a667ee20514feb3d83ea205d39a2efe5f">capable_</a> = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;    <span class="keywordflow">return</span>;</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;  }</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;}</div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_point_cloud_color_handler_html_a853e39570f293fdc6a683d57d4791632"><div class="ttname"><a href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#a853e39570f293fdc6a683d57d4791632">pcl::visualization::PointCloudColorHandler::setInputCloud</a></div><div class="ttdeci">virtual void setInputCloud(const PointCloudConstPtr &amp;cloud)</div><div class="ttdoc">Set the input cloud to be used.</div><div class="ttdef"><b>Definition:</b> point_cloud_color_handlers.h:111</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_point_cloud_color_handler_html_aba3fc6b22d44f778e126f94550b7f932"><div class="ttname"><a href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#aba3fc6b22d44f778e126f94550b7f932">pcl::visualization::PointCloudColorHandler::fields_</a></div><div class="ttdeci">std::vector&lt; pcl::PCLPointField &gt; fields_</div><div class="ttdoc">The list of fields available for this PointCloud.</div><div class="ttdef"><b>Definition:</b> point_cloud_color_handlers.h:129</div></div>
<div class="ttc" id="aclasspcl_1_1visualization_1_1_point_cloud_color_handler_html_af802304b20568b48ea9da0f203128ff8"><div class="ttname"><a href="classpcl_1_1visualization_1_1_point_cloud_color_handler.html#af802304b20568b48ea9da0f203128ff8">pcl::visualization::PointCloudColorHandler::field_idx_</a></div><div class="ttdeci">int field_idx_</div><div class="ttdoc">The index of the field holding the data that represents the color.</div><div class="ttdef"><b>Definition:</b> point_cloud_color_handlers.h:126</div></div>
<div class="ttc" id="agroup__common_html_ga2bc4b9a4e25de1d0b00db4e41f0ad682"><div class="ttname"><a href="group__common.html#ga2bc4b9a4e25de1d0b00db4e41f0ad682">pcl::getFieldIndex</a></div><div class="ttdeci">int getFieldIndex(const pcl::PCLPointCloud2 &amp;cloud, const std::string &amp;field_name)</div><div class="ttdoc">Get the index of a specified field (i.e., dimension/channel)</div><div class="ttdef"><b>Definition:</b> io.h:59</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>visualization/include/pcl/visualization/<a class="el" href="point__cloud__color__handlers_8h_source.html">point_cloud_color_handlers.h</a></li>
<li>visualization/include/pcl/visualization/impl/<a class="el" href="point__cloud__color__handlers_8hpp_source.html">point_cloud_color_handlers.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>visualization</b></li><li class="navelem"><a class="el" href="classpcl_1_1visualization_1_1_point_cloud_color_handler_label_field.html">PointCloudColorHandlerLabelField</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
